package com.smzd.ccms.mappers;

import java.util.List;
import java.util.Map;

import com.smzd.ccms.domain.Channel;
import com.smzd.core.mappers.IMapper;
import com.smzd.framework.utils.db.RPage;

public interface ChannelMapper extends IMapper<Channel> {

	List<Channel> getAllChannels();

	List<Channel> getAllChannelsWithParent();

	List<Channel> getAllChannelsByOwnerId(int meetingId);

	List<Channel> getSubChannelsByParentId(int chId);

	List<Channel> getSublingChannelsByPath(Map<String, Object> path);

	List<Channel> getTemplateChannels(RPage<Channel> page);

	void updateSequence(Channel ch);

	Channel getChannelByPath(Map<String, Object> params);
	Channel getChannelByPathId(Map<String, Object> params);

	void updateType(Channel channel);
	Channel getBreadcrumbChannelsByChId(int chId);

	Channel getBreadcrumbChannelsByPath(Map<String, Object> params);

    List<Channel> getChannelsWithLastArticleByPage(RPage<Channel> page);

    int getChannelsCountByPage(RPage<Channel> page);
}